<template>
    <div>
        <td>
            {{ val.shopName }}
            <button @click="jiaNum(i)">+</button>
            {{ val.count }}
            <button @click="jianNum(i)">-</button>
        </td>
    </div>
</template>

<script>
export default {
    props: ['val','i'],
    data(){
        return{

        }
    },
    methods:{
        jiaNum(i){
            this.$emit('jiaNum',i)
            // console.log(i);
        },
        jianNum(i){
            this.$emit('jianNum',i)
            // console.log(i);
        }
    }
}
</script>

<style>

</style>